import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false

// uView组件库
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

// http请求
import http from '@/common/http.js'
Vue.prototype.$http = http

Vue.prototype.$baseUrl = 'http://localhost:3000'

// vuex
import store from '@/store/index.js'
Vue.prototype.$store = store

// 判断是否登录
import isLogin from '@/common/isLogin.js'
Vue.prototype.$isLogin = isLogin

App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif